package com.simulacra.model;// import com.simulacra.util.log.Logger;
/**
 * Clase que contiene los atributos de un {@link com.simulacra.model.SimulacraEvent} particular
 *
 */
public class SoccerEvent implements SimulacraEvent {
	public static final String GOL_EVENT_LABEL= "Gol";
	public static final String END_EVENT_LABEL= "End";
	public static final String CORNER_EVENT_LABEL="Corner";

	public static final String FAULT_EVENT_LABEL="Faul";
	public static final String OFFSIDE_EVENT_LABEL="Off-Side";
	public static final String AMONESTACION_EVENT_LABEL="Amonestacion";
	public static final String SHOT_EVENT_LABEL="Direct-Shot";
	public static final String BAND_EVENT_LABEL="Throw-in";
	public static final String EVENT_AMOUNT_LABEL="GameLenght";
	private String eventName;
	private double average;
	private String teamEvent = null;
	private Team source = null;
	public SoccerEvent (String eventName, Team theSource, double average) {
		setAverage(average);
		setEventName (eventName);
		setSource(theSource);//	Logger.log(this, eventName);
		
	}		
	public SoccerEvent (String eventName, String theSource, double average) {
		this(eventName, new SoccerTeam( theSource, 0), average);
		
	}	
	public SoccerEvent (String eventName) {
		this(eventName, "", 0);
		
	}
	void setEventName(String eventName) {
		this.eventName = eventName;
	}
	String getEventName() {
		return eventName;
	}
	void setAverage(double average) {
		this.average = average;
	}
	double getAverage() {
		return average;
	}
	public void setTeamEvent(String teamEvent) {
		this.teamEvent = teamEvent;
	}
	public String getTeamEvent() {
		return teamEvent;
	}
	void setSource(Team source) {
		this.source = source;
	}
	Team getSource() {
		return source;
	}

}
